package mao.thinkinjava.concurency.myenum;
//接口里面可以定义枚举。
public interface Food {
    enum Appetizer implements Food{SALAD,SOUP;}
    enum AA implements Food{BB,CC}
}

class TestFood{
    public static void main(String[] args) {
        Food f = Food.AA.BB;
        System.out.println(f.getClass());
        f = Food.Appetizer.SALAD;
        System.out.println(f.getClass());
    }
}
